
function init() {
    // Accordion
    $("#accordion").accordion({ 
        header: "h3",
        collapsible: "false",
        active: "false" 
    });

    $("#home, #conf_net, #conf_access, #conf_inst, #conf_stat").click(loadConf);
    $("#mon_net, #mon_system").click(loadMon);
}

function loadMon () {
    url = "graphs/" + this.id + ".html";
    loadContentDiv(url);
}

function loadConf () {
    url = this.id + ".html";
    loadContentDiv(url);
}

function loadContentDiv(url) {
    $.ajax({
        type: "GET",
        async: false,
        url: url,
        success: function(msg){
        $("#content").html(msg);
        }
    });
}
